{template header}
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" type="text/css" href="extend/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript" src="extend/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="extend/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script language="javascript" type="text/javascript">
J(function(){
	bopuruiObj.product = {
		init: function(){
			var cookName = 'selectProduct{$oneArr[categoryId]}';
			bopuruiObj.command.cookName = cookName;
			var selectProduct = getcookie(cookName)!='' ? getcookie(cookName) : '';
			J('#intoShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				//if(J('input[name=productId[]]:checked').length==0){
				if(getcookie(cookName)=='' || getcookie(cookName)==','){
					alert('请选择产品！');
				}else{
					var productId = '';
					//J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					productId = getcookie(cookName).replace(/\,/g,'-')
					ajaxmenu('/product-detail-{$categoryId}.htm?intoShopping=add&pid='+productId, 0, 0, 0, function(s){J('#cartCount').html(J('#ShopcartCount').find('b').eq(0).html())});
				}
				<!--{/if}-->
			});
			
			J('a[id=alertImg]').fancybox({
				'transitionIn'	: 'none',
				'transitionOut'	: 'none'
			});

			J('#ImmediatelyShopping').click(function(){
				<!--{if !$userInfo[userId]}-->
				ajaxmenu("/product-detail-{$categoryId}.htm?verify=islogin&tourl={$_SERVER['REQUEST_URI']}", 0);
				<!--{else}-->
				if(getcookie(cookName)=='' || getcookie(cookName)==','){
					alert('请选择产品！');
				}else{
					var productId = '';
					//J('input[name=productId[]]:checked').each(function(){productId = productId + J(this).val() + '-';});
					productId = getcookie(cookName).replace(/\,/g,'-')
					location.href='/product-detail-{$categoryId}.htm?intoShopping=add&action=now&pid='+productId;
				}
				<!--{/if}-->
			});
			
			J('#selectAll').click(function(){
				if(J(this).attr('checked')==true){
					J('input[name=productId[]]').attr('checked', true)
				}else{
					J('input[name=productId[]]').attr('checked', false)
				}
			});
			
			bopuruiObj.command.mtabletr();
			bopuruiObj.command.selectBoxAll();
			
			if(selectProduct!=''){
				J('input[Tags=mark]').each( function(){
					if(selectProduct.indexOf(','+J(this).val()+',')>-1){
						J(this).attr('checked', true);
						jQuery(this).parent().parent().removeClass('cur');
						jQuery(this).parent().parent().mousemove(function(){jQuery(this).removeClass('cur');});
						jQuery(this).parent().parent().addClass('table1a');
					}
				});
			}
		}	
	}
	bopuruiObj.product.init();
});
</script>

<style type="text/css">

#bbv{position:fixed;top:300px;right:10px;_position:absolute;_top:expression(documentElement.scrollTop+300);}
#dbimg{width:50px;height:50px;height:22px;background:url(../images/pk.gif);text-align:center;color:#fff;font-weight:bold;padding-top:28px;cursor:pointer;}
#xsyc{border:2px dotted #f00;position:absolute;line-height:10px;width:15px;height:15px;top:-20px;opacity:0.9;filter:alpha(opacity=90);z-index:999;}
#dbnr{display:none;position:absolute;top:0;right:55px;border:6px solid #FBDDE7;background:#FCFCFC;width:272px;overflow:hidden;z-index:9;}
#dbnr b{display:block;clear:both;height:26px;font-size:14px;padding:8px 0 0 10px;}
#dbnr b span{float:left;}
#dbnr b span.span2{float:right;padding-right:7px;font-size:12px;font-weight:normal;cursor:pointer;}
#dbnr ul{width:246px;overflow:hidden;padding:0 0 4px 14px;}
#dbnr ul li{width:240px;overflow:hidden;padding:0 0 7px 0;color:#CA0065;}
#dbnr img{cursor:pointer;}
.pkbut{clear:both;height:45px;background:url(../images/pkline.gif) repeat-x;padding-left:60px;}
.pkbut span{display:inline-block;float:left;width:65px;height:22px;background:url(../images/allbut4.gif) no-repeat;text-align:center;line-height:22px;color:#C54870;margin:12px 18px 0 0;cursor:pointer;}
.pkbut span a:link,.pkbut span a:visited{text-decoration:none;color:#C54870;}
.pkbut span a:active,.pkbut span a:hover{text-decoration:none;color:#C54870;}
#tishi{width:100%;text-align:center;padding-bottom:10px;}
dl,dd,dt,ul,ol,li,h1,h2,h3,h4,h5,h6{list-style-position:outside;list-style-type:none;margin:0px;padding:0px;border:0px;}

</style>
<script src="js/yokautf_0.1.js" type="text/javascript" charset="utf-8"></script>

<div class="top_1"></div>
<div class="top_2">
	  <div class="con_left">
		  {template userlogin}		  
		  {template product_left}			
	  </div>
        
  <div class="con_box_left">
	<p align="center"><img src="/images/darkgreen/search.jpg" />    </p>
	<p align="center" style="font-weight:bold; font-size:16px; color:#29A125">搜索的格式可为：NSX 100N 2.2 100 3P 或 NSX 100 N 2.2 100 3P（大小写均可）</p>
  </div>
</div>
  <div class="top_3"></div>
  
  
{template footer}